package com.tianheng.wanzhou.datacollecting.db.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjw
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Xishaji extends Model<Xishaji> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备ip
     */
    @TableId("machine_ip")
    private String machineIp;
    /**
     * 机台号
     */
    @TableField("mac_id")
    private String macId;

    /**
     * 当前落管个数
     */
    @TableField("current_number_tube")
    private String currentNumberTube;

    /**
     * 当前管纱长度(m)
     */
    @TableField("cop_length")
    private String copLength;

    /**
     * A班当班产量
     */
    @TableField("class_A_shift_production")
    private String classAShiftProduction;

    /**
     * A班累计产量
     */
    @TableField("class_A_cumulative_production")
    private String classACumulativeProduction;

    /**
     * B班当班产量
     */
    @TableField("class_B_shift_production")
    private String classBShiftProduction;

    /**
     * B班累计产量
     */
    @TableField("class_B_cumulative_production")
    private String classBCumulativeProduction;

    /**
     * C班当班产量
     */
    @TableField("class_C_shift_production")
    private String classCShiftProduction;

    /**
     * C班累计产量
     */
    @TableField("class_C_cumulative_production")
    private String classCCumulativeProduction;

    /**
     * D班当班产量
     */
    @TableField("class_D_shift_production")
    private String classDShiftProduction;

    /**
     * D班累计产量
     */
    @TableField("class_D_cumulative_production")
    private String classDCumulativeProduction;

    /**
     * 总长度累计
     */
    @TableField("total_length_cumulative")
    private String totalLengthCumulative;

    /**
     * 锭盘直径(mm)
     */
    @TableField("rolled_plate_diameter")
    private String rolledPlateDiameter;

    /**
     * 滚盘直径(mm)
     */
    @TableField("wharve_diameter")
    private String wharveDiameter;

    /**
     * 锭子速度（r/min)
     */
    @TableField("rolled_speed")
    private String rolledSpeed;

    /**
     * 罗拉速度（r/min)
     */
    @TableField("spindle_speed")
    private String spindleSpeed;

    /**
     * 细纱号数（ne/g/km）
     */
    @TableField("yarn_number")
    private String yarnNumber;


    @Override
    protected Serializable pkVal() {
        return this.machineIp;
    }

}
